<div id="main-content">
  <div class="container-fluid">
    <div class="row-fluid">
			<div class="span12">
				<div class="nonboxy-widget">
					<div class="widget-head">
						<h5><i class="black-icons blocks_images"></i><?=$title_table?></h5>
					</div>
					<div class="widget-content">
						<div class="widget-box">
              <?=$this->form_eksternal->form_open("", 'class=" form-horizontal well" id="formoutlet"', 
                      array("id_detail" => $detail[0]->id_asset_to_outlet_log, "id_asset_to_outlet" => $asset_log[0]->id_asset_to_outlet))?>
								<fieldset>
             
									<div class="control-group">
										<label class="control-label">Title</label>
										<div class="controls">
                    
                      <?=$this->form_eksternal->form_input('title', $detail[0]->title, 'id="title"')?>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">Code</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_input("kode", $detail[0]->kode, "class='span4'")?>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">Tanggal</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_date("tanggal", $detail[0]->tanggal, 'tanggal', "class='span4'")?>
										</div>
									</div>
									<div class="control-group">
										<label class="control-label">Note</label>
										<div class="controls">
                      <?=$this->form_eksternal->form_textarea('note', $detail[0]->note, "class='span4'")?>
										</div>
									</div>
								</fieldset>
								<div class="form-actions">
									<button class="btn btn-primary" type="submit">Save changes</button>
									<button class="btn" onclick="history.go(-1);return false;">Cancel</button>
								</div>
							</form>
						</div>
					</div>
				</div>
			</div>
		</div>
  </div>
</div>
<script>
  function del_row_lokal(tr){
    $("#"+tr).remove();
  }
  $(document).ready(function(){
    
    $( "#asset" ).autocomplete({
      source: "<?=  site_url("asset/auto-asset-management")?>",
      minLength: 1,
      select: function( event, ui ) {
        $("#id_asset").val(ui.item.id);
      }
    });
    
    $("#gudang").change(function(){
      var gt = $('#gudang').val() * 1;
      if(gt > 0){
        $( "#asset" ).autocomplete('option', 'source', "<?=  site_url("asset/auto-asset-management")?>/"+$("#gudang").val()+"/");
      }
      else{
        
      }
    });
  });
</script>